xenstore: add xenstore-watch command line client
authorIan Campbell <ian.campbell@citrix.com>
Thu, 21 Oct 2010 17:14:50 +0000 (18:14 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 21 Oct 2010 17:14:50 +0000 (18:14 +0100)
commitcc0b2bf9de6871cb951fccd4c4e860f08c15e2ec
tree2569413c5221554ef385df252765435b987cc3b7
parenteaf735e9991ddd6971d5cbebdf588a104f837c7b
xenstore: add xenstore-watch command line client

# xenstore-watch x | while read w ; do
> echo "watch fired on $w"
> echo "value" $(xenstore-read $w)
> echo
> done

# xenstore-write x/y/z 42

output from while loop:
        watch fired on x/t/z
        value 42

[ also add line to .hgignore - iwj ]

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
.hgignore
tools/xenstore/Makefile
tools/xenstore/xenstore_client.c